#include <iostream>
#include <string>
#include <sys/types.h>
#include <signal.h>

int main(int argc,char* argv[])
{
    if(argc != 3)
    {
        std::cout << "Argument Fail" << std::endl;
    }

    int sig = std::stoi(argv[1]);
    std::cout << sig << std::endl;

    int pid = std::stoi(argv[2]);
    std::cout << pid << std::endl;

    int n = kill(pid,sig);

    if(n == 0)
    {
        std::cout << "Pid : " << pid << "send " << sig << " success" << std::endl;
    }
    if(n < 0)
    {
        std::cout << "Pid : " << pid << "send " << sig << " success" << std::endl;;
    }

    return 0;
}
